#!/bin/bash
# postgresql数据库配置
source ../common.sh


# server 根目录
SERVER_ROOT=$(dirname $SERVER_ROOT)
# server script目录
SERVER_SCRIPTS=${SERVER_ROOT}'/scripts'
# server SQL目录
SERVER_SQL=${SERVER_ROOT}'/server/database/sql'
# server log目录
SERVER_LOG=$SERVER_ROOT'/log'



#普通用户,用来启动postgresql数据库
PSQL_USER=$(whoami)
PSQL_PASS="180506"

#数据库名称
PSQL_DNAME='postgres'
#数据库版本
PSQL_VER='11.5_1'
#postgresql数据库位置
POSTGRESQL_DATABASE_PATH='/usr/local/data/postgres'

if [ $PLAT == "MACOSX" ];then
# start MACOSX

#postgresql安装的位置
POSTGRESQL_INSTALL_PATH='/usr/local/Cellar/postgresql/'${PSQL_VER}

# end MACOSX
else
# start LINUX

#postgresql安装的位置
POSTGRESQL_INSTALL_PATH='/opt/postgresql/'${PSQL_VER}

# end LINUX
fi # [ $PLAT == "MACOSX" ]

